package cn.itcast.service.system;

import cn.itcast.domain.system.Module;
import cn.itcast.domain.system.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    public List<User> findAll(String CompanyId);

    void save(User user);


    User findById(String id);

    void update(User user);

    void deleteById(String id);
    //分页查询
    PageInfo<User>findByPage(String CompanyId,Integer pageNum, Integer pageSize);

    void changeRole(String userid, String[] roleIds);

    void deleteUserAndRole(String id);

    User findByEmail(String email);




}
